home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11888 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Programming standard C.
  5. Date: 26 Mar 1996 22:06 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <26MAR199622065672@erich.triumf.ca>
  9. References: <4j9pji$l3a@news.xs4all.nl>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4j9pji$l3a@news.xs4all.nl>, mamoman@xs1.xs4all.nl (Martin Moerman) writes...
  14. >Hello all,
  15. >I am trying to write standard C, so that my sources can be used on 
  16. >different systems (LINUX, Sparc etc..)..
  17. >The normal stuff works (printf etc)..
  18. >But I want to do a clear screen, how can I difine that under standard C..
  19.  
  20. #ifdef __TURBOC__
  21. clrscr();
  22. #ifdef __MSC__
  23. /* something else */
  24. #ifdef _UNIX_
  25. /* still another....*/
  26.  
  27. You can't do "fancy" screen work in ANSI standard C.  The curses library is
  28. widely recommended for this job under unix, and a version of curses is
  29. apparently also available for DOS, so it, although not "standard" might be the
  30. most portable solution.
  31.  
  32.  
  33. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  34. Internet: bennett@triumf.ca         | of one another only when one can be
  35. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  36. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  37. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  38. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  39.  
  40.